package com.college.products.mapper;

import com.college.common.pojo.ao.Favorite;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FavoriteMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Favorite favorite);

    int insertSelective(Favorite favorite);

    Favorite selectByPrimaryKey(Long id);

    List<Favorite> getMyFavorite(Long userId);

    Integer checkFavorite(Long userId,Long idleId);

    int updateByPrimaryKeySelective(Favorite favorite);

    int updateByPrimaryKey(Favorite favorite);
}